@extends('layouts/app')
@section('content')
    <div class="weui-grids store">
        <div class="weui-uploader ">
            <div class="weui-uploader__files " >
                <a id="dpzl" class="weui-uploader__file_status  Colors interface  weui-btn_default">
                    <div class="weui-uploader__file-content gary3">店铺信息</div>
                </a>
                <a id="yggl" class="weui-uploader__file_status Colors interface  weui-btn_default" href="javascript:;" >
                    <div class="weui-uploader__file-content gary3">员工管理</div>
                </a>
                <a id="cdgl" class="weui-uploader__file_status Colors interface weui-btn_default" href="javascript:;"  >
                    <div class="weui-uploader__file-content  gary3">菜单管理</div>
                </a>
                <a id="fzgl" class="weui-uploader__file_status Colors interface  weui-btn_default" href="javascript:;" >
                    <div class="weui-uploader__file-content gary3">房桌管理</div>
                </a>
                <a id="sbgl" class="weui-uploader__file_status Colors interface weui-btn_default" href="javascript:;"  >
                    <div class="weui-uploader__file-content  gary3">设备管理</div>
                </a>
                <a id="ddgl" class="weui-uploader__file_status Colors interface  weui-btn_default" href="javascript:;" >
                    <div class="weui-uploader__file-content gary3">订单管理</div>
                </a>
                {{--<a id="cwgl" class="weui-uploader__file_status Colors interface weui-btn_default" href="javascript:;"  >--}}
                    {{--<div class="weui-uploader__file-content  gary3">财务管理</div>--}}
                {{--</a>--}}
            </div>
        </div>
    </div>
    <script>

        // 因为跳转要带id, 所以使用事件代理做页面跳转
        var id = getRequest().id;

        var api = {
            'dpzl': '/mobile/shopAdmin/editStore',
            'yggl': '/mobile/shopAdmin/System',
            'cdgl': '/mobile/shopAdmin/storeH',
            'fzgl': '/mobile/shopAdmin/table',
            'sbgl': '/mobile/shopAdmin/manager',
            'ddgl': '/mobile/shopAdmin/manage',
            'cwgl': ''
        };

        $(".weui-uploader").on('click', 'a', function (e) {
            var eid = e.currentTarget.id;
            location.href = api[eid] + '?id=' + id;
        });
    </script>
@endsection
@extends('layouts/footer')
